/* eslint-disable spaced-comment */
/* eslint-disable react/react-in-jsx-scope */

import User from './routers/user';
import Upgrade from './routers/upgrade';
import Home from './routers/app/home';
import SearchManage from './routers/app/searchmanage';
import HireDismissManage from './routers/app/hiredismissmanage';
import SaleManage from './routers/app/salemanage';
import SupplyManage from './routers/app/supplymanage';
import CareerManage from './routers/app/careermanage';
import CustomServiceManage from './routers/app/customservicemanage';
import SendOrderManage from './routers/app/sendordermanage';
import SocialInsuranceManagement from './routers/app/socialinsurancemanagement';
import PayManage from './routers/app/paymanage';
import ProvidentFundManagement from './routers/app/providentfundmanagement';
import ReceiveOrderManage from './routers/app/receiveordermanage';
import HRManage from './routers/app/hrmanage';
import FileManage from './routers/app/filemanage';
import CSChargeManage from './routers/app/chargemanage-cs';
import NSChargeManage from './routers/app/chargemanage-ns';
import BillManagement from './routers/app/billmanagement';
import BackManage from './routers/app/backmanage';
import FMManage from './routers/app/fmmanage';
import SalaryManage from './routers/app/salarymanage';
import SocaccManageSend from './routers/app/socaccmanagesend';
import SocaccManageReceive from './routers/app/socaccmanagereceive';
import SocaccManage from './routers/app/socaccmanage';
import ProductManage from './routers/app/productmanage';
import MainDataManage from './routers/app/maindatamanage';
import MaterialManagement from './routers/app/materialmanagement';
import SystemManage from './routers/app/systemmanage';
import SystemSetting from './routers/app/systemsetting';
import More from './routers/app/more';
import Result from './routers/app/result';
import Exception from './routers/app/exception';
import Account from './routers/app/account';
import ReplaceManage from './routers/app/replacemanage';

export default [
  // 用户
  User,
  // 升级
  Upgrade,
  // app
  {
    path: '/',
    component: '../layouts/BasicLayout',
    Routes: ['src/pages/Authorized'],
    routes: [
      { path: '/', redirect: '/user/login' },
      // 1 首页 0（md order）
      Home,
      // 2 查询管理 1
      SearchManage,
      // 招聘解雇管理？
      HireDismissManage,
      // 3 销售管理 2
      SaleManage,
      // 4 供应商管理 2
      SupplyManage,
      // 5 入离职管理 2
      CareerManage,
      // 6 客服管理 3
      CustomServiceManage,
      // 7 发单管理 3
      SendOrderManage,
      // 8 社保管理 3
      SocialInsuranceManagement,
      // 9 付费管理 4
      PayManage,
      // 10 公积金管理 4
      ProvidentFundManagement,
      // 11 接单管理 5
      ReceiveOrderManage,
      // 12 人事管理 5
      HRManage,
      // 13 档案管理 5
      FileManage,
      // 14 收费管理 6 客服系统
      CSChargeManage,
      // 14 收费管理 6 供应商交互系统
      NSChargeManage,
      // 15 账单管理 6
      BillManagement,
      // 16 回盘管理（暂无）6
      BackManage,
      // 17 财务管理 20
      FMManage,
      // 18 工资管理 21
      SalaryManage,
      // 19 社保公积金管理(发单员工) 22
      SocaccManageSend,
      // 19 社保公积金管理(接单员工) 22
      SocaccManageReceive,
      // 19 社保公积金管理(客服系统) 22
      SocaccManage,
      // 20 产品管理 30
      ProductManage,
      // 21 主数据管理 31
      MainDataManage,
      // 24 材料管理 33
      MaterialManagement,
      // 25 权限管理 34
      SystemManage,
      // 26 系统设置 35
      SystemSetting,
      // 批量替数管理
      ReplaceManage,
      // 27 更多 100
      More,
      // 结果
      Result,
      // 报错
      Exception,
      // 账户
      Account,

      {
        component: '404',
      },
    ],
  },
];
